package com.yuhanginfo.modules.web.entity;

import org.hibernate.validator.constraints.Length;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotNull;

import com.yuhanginfo.common.persistence.WebDataEntity;

/**
 * 询价管理Entity
 * @author yangs
 * @version 2017-11-23
 */
public class WebEnquiryGoods extends WebDataEntity<WebEnquiryGoods> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// code
	private WebYongUser user;		// user_id
	private String quality;		// quality
	private String contacts;		// contacts
	private String phone;		// phone
	private String oicq;		// oicq
	private String status;		// status
	private String partsInfo;		// parts_info
	private Integer num;		// num
	private Date receiveTime;		// receive_time
	private String photo;		// photo
	private String userType;
	private String userName;
	private String company;
	private String whetherTicket;
	private String userId;
	private Date startTime;
	private Date endTime;
	private String goodsName;
	private String partsCode;
	private Date huifu;
	public Date getHuifu() {
		return huifu;
	}

	public void setHuifu(Date huifu) {
		this.huifu = huifu;
	}

	public String getPartsCode() {
		return partsCode;
	}

	public void setPartsCode(String partsCode) {
		this.partsCode = partsCode;
	}

	private List<WebEnquiryGoodsReply> webEnquiryGoodsReply;
	
	
	
	public List<WebEnquiryGoodsReply> getWebEnquiryGoodsReply() {
		return webEnquiryGoodsReply;
	}

	public void setWebEnquiryGoodsReply(List<WebEnquiryGoodsReply> webEnquiryGoodsReply) {
		this.webEnquiryGoodsReply = webEnquiryGoodsReply;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	private List<Object> Images;
	
	public List<Object> getImages() {
		return Images;
	}

	public void setImages(List<Object> images) {
		Images = images;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getWhetherTicket() {
		return whetherTicket;
	}

	public void setWhetherTicket(String whetherTicket) {
		this.whetherTicket = whetherTicket;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public WebEnquiryGoods() {
		super();
	}

	public WebEnquiryGoods(String id){
		super(id);
	}

	@Length(min=0, max=64, message="code长度必须介于 0 和 64 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	public WebYongUser getUser() {
		return user;
	}

	public void setUser(WebYongUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=32, message="quality长度必须介于 0 和 32 之间")
	public String getQuality() {
		return quality;
	}

	public void setQuality(String quality) {
		this.quality = quality;
	}
	
	@Length(min=0, max=32, message="contacts长度必须介于 0 和 32 之间")
	public String getContacts() {
		return contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}
	
	@Length(min=0, max=32, message="phone长度必须介于 0 和 32 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=32, message="oicq长度必须介于 0 和 32 之间")
	public String getOicq() {
		return oicq;
	}

	public void setOicq(String oicq) {
		this.oicq = oicq;
	}
	
	@Length(min=0, max=11, message="status长度必须介于 0 和 11 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=100, message="parts_info长度必须介于 0 和 100 之间")
	public String getPartsInfo() {
		return partsInfo;
	}

	public void setPartsInfo(String partsInfo) {
		this.partsInfo = partsInfo;
	}
	
	@Length(min=0, max=11, message="num长度必须介于 0 和 11 之间")
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="receive_time不能为空")
	public Date getReceiveTime() {
		return receiveTime;
	}

	public void setReceiveTime(Date receiveTime) {
		this.receiveTime = receiveTime;
	}
	
	@Length(min=0, max=500, message="photo长度必须介于 0 和 500 之间")
	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}
	
}